package chat.serverToClientMessage;

import chat.client.Client;

public class RegistrationAnswer implements ServerToClientMessage {

	private static final long serialVersionUID = 1L;
	private boolean enable;
	
	public RegistrationAnswer(boolean b) {
		this.enable = b;
	}
	
	public synchronized boolean getEnable() {
		return enable;
	}

	@Override
	public void processOnClient(Client client) {
		client.setRegEnable(this);
		
	}
	

}
